Skip to main content

gridSize

Type

property

Summary

Specifies the size of squares in the drag grid.

Syntax

set the gridSize to <pixelSize>

Description

Use the gridSize property to align objects in a coarse or fine grid.

If the grid property is set to true, any object the user moves or resizes is moved or resized to the nearest point on the grid. If the object is moved, its top and left are multiples of the gridSize. If the object is resized, its height and width are multiples of the gridSize.

If the grid is false, the setting of the gridSize property has no effect.

Examples

set the gridSize to 10 -- objects are aligned to a 10-pixel mesh

constant: left

glossary: object, property

keyword: integer, point, top

property: height, centered, width, grid

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?